package bluejack.operation;
import nme.events.IEventDispatcher;

/**
 * ...
 * @author BlueJack
 */

interface IOper implements IEventDispatcher
{

	//立即执行
	function execute():Void;
	//成功函数	
	function result(event:Dynamic=null):Void;
	//失败函数	
	function fault(event:Dynamic=null):Void;
	/**
	 * 推入队列
	 * @param queue	使用的队列，为空则为默认队列
	 */
	function commit(queue:Queue = null):Void;
	//中断队列 
	function halt():Void;
}